home *** CD-ROM | disk | FTP | other *** search
- Path: newshost.lanl.gov!tanmoy
- From: tanmoy@qcd.lanl.gov (Tanmoy Bhattacharya)
- Newsgroups: comp.lang.c
- Subject: Re: stricmp()
- Date: 11 Jan 1996 15:47:23 GMT
- Organization: Los Alamos National Laboratory
- Message-ID: <TANMOY.96Jan11084723@qcd.lanl.gov>
- References: <8213293982604@demosys.gcomm.com> <TANMOY.96Jan10212912@qcd.lanl.gov>
- NNTP-Posting-Host: qcd.lanl.gov
- Mime-Version: 1.0
- Content-Type: text
- In-reply-to: tanmoy@qcd.lanl.gov's message of 11 Jan 1996 04:29:12 GMT
-
- --text follows this line--
- In article <8213293982604@demosys.gcomm.com> jackal@gcomm.com (Jack
- Alvrus) writes:
- <snip>
-
- A rare post with so many wrong assumptions!!! :-)
-
- Here's a fun question for ya':
-
- stricmp() is an ANSI library function, right? So it should exhibit, if
-
- no.
-
- not consistent, at least *documented* behavior, right?
-
- no and no. Usually library functions have certain requirments on their
- parameters, and a violation of these can lead to undefined behaviour,
- which need neither be consistent nor documented.
-
- So, is stricmp("a","^") always less than zero or greater than zero, and
- if neither, is there any documented behavior in this case?
-
- Any use of an object called stricmp with external linkage leads to
- undefined behaviour if the implementation does not explicitly permit
- and define such use.
-
- Cheers
- Tanmoy
- --
- tanmoy@qcd.lanl.gov(128.165.23.46) DECNET: BETA::"tanmoy@lanl.gov"(1.218=1242)
- Tanmoy Bhattacharya O:T-8(MS B285)LANL,NM87545 H:#9,3000,Trinity Drive,NM87544
- Others see <gopher://yaleinfo.yale.edu:7700/00/Internet-People/internet-mail>,
- <http://alpha.acast.nova.edu/cgi-bin/inmgq.pl>or<ftp://csd4.csd.uwm.edu/pub/
- internetwork-mail-guide>. -- <http://nqcd.lanl.gov/people/tanmoy/tanmoy.html>
- fax: 1 (505) 665 3003 voice: 1 (505) 665 4733 [ Home: 1 (505) 662 5596 ]
-